.class public Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;
.super Landroid/widget/FrameLayout;
.source "GPSSelectView.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$Companion;
    }
.end annotation


# static fields
.field public static final Companion:Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$Companion;


# instance fields
.field public bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

.field public internal:Landroidx/appcompat/widget/AppCompatImageView;

.field private onSelecteGPSType:Lkotlin/jvm/functions/Function1;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Integer;",
            "Lkotlin/Unit;",
            ">;"
        }
    .end annotation
.end field

.field public usb:Landroidx/appcompat/widget/AppCompatImageView;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$Companion;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    sput-object v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->Companion:Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$Companion;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 26
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 27
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->initialize(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 29
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 30
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->initialize(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 32
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 33
    invoke-virtual {p0, p1}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->initialize(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public final getBluetooth()Landroidx/appcompat/widget/AppCompatImageView;
    .locals 1

    .line 23
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "bluetooth"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public final getInternal()Landroidx/appcompat/widget/AppCompatImageView;
    .locals 1

    .line 22
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "internal"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public final getOnSelecteGPSType()Lkotlin/jvm/functions/Function1;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lkotlin/jvm/functions/Function1<",
            "Ljava/lang/Integer;",
            "Lkotlin/Unit;",
            ">;"
        }
    .end annotation

    .line 19
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->onSelecteGPSType:Lkotlin/jvm/functions/Function1;

    return-object v0
.end method

.method public final getUsb()Landroidx/appcompat/widget/AppCompatImageView;
    .locals 1

    .line 24
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "usb"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public final initialize(Landroid/content/Context;)V
    .locals 2

    const-string v0, "context"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 37
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const v0, 0x7f0c0064

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 38
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->removeAllViews()V

    .line 39
    invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    const v0, 0x7f09013c

    .line 40
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const-string v1, "view.findViewById(R.id.internal_gps)"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Landroidx/appcompat/widget/AppCompatImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    const v0, 0x7f090072

    .line 41
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const-string v1, "view.findViewById(R.id.bluetooth_gps)"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Landroidx/appcompat/widget/AppCompatImageView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    const v0, 0x7f090288

    .line 42
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v0, "view.findViewById(R.id.usb_gps)"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroidx/appcompat/widget/AppCompatImageView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    .line 44
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    const/4 v0, 0x0

    if-eqz p1, :cond_2

    new-instance v1, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$initialize$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$initialize$1;-><init>(Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;)V

    invoke-static {p1, v1}, Lcom/mcxiaoke/koi/ext/ViewKt;->onClick(Landroid/view/View;Lkotlin/jvm/functions/Function1;)V

    .line 45
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz p1, :cond_1

    new-instance v1, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$initialize$2;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$initialize$2;-><init>(Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;)V

    invoke-static {p1, v1}, Lcom/mcxiaoke/koi/ext/ViewKt;->onClick(Landroid/view/View;Lkotlin/jvm/functions/Function1;)V

    .line 46
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz p1, :cond_0

    new-instance v0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$initialize$3;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView$initialize$3;-><init>(Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;)V

    invoke-static {p1, v0}, Lcom/mcxiaoke/koi/ext/ViewKt;->onClick(Landroid/view/View;Lkotlin/jvm/functions/Function1;)V

    return-void

    :cond_0
    const-string p1, "usb"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v0

    :cond_1
    const-string p1, "bluetooth"

    .line 45
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v0

    :cond_2
    const-string p1, "internal"

    .line 44
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v0
.end method

.method protected final onSelect(IZ)V
    .locals 8

    const/4 v0, 0x1

    const v1, 0x7f080113

    const v2, 0x7f0800d1

    const-string v3, "usb"

    const-string v4, "bluetooth"

    const-string v5, "internal"

    const/4 v6, 0x0

    if-eq p1, v0, :cond_8

    const/4 v0, 0x2

    const v7, 0x7f0800e4

    if-eq p1, v0, :cond_4

    const/4 v0, 0x3

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 62
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_3

    const v1, 0x7f080112

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    .line 63
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_2

    invoke-virtual {v0, v7}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    .line 64
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_1

    invoke-virtual {v0, v2}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    goto :goto_0

    :cond_1
    invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 63
    :cond_2
    invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 62
    :cond_3
    invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 57
    :cond_4
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_7

    const v2, 0x7f0800d0

    invoke-virtual {v0, v2}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    .line 58
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_6

    invoke-virtual {v0, v7}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    .line 59
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_5

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    goto :goto_0

    :cond_5
    invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 58
    :cond_6
    invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 57
    :cond_7
    invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 52
    :cond_8
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_c

    const v5, 0x7f0800e3

    invoke-virtual {v0, v5}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    .line 53
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_b

    invoke-virtual {v0, v2}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    .line 54
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    if-eqz v0, :cond_a

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/AppCompatImageView;->setImageResource(I)V

    :goto_0
    if-eqz p2, :cond_9

    .line 68
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->onSelecteGPSType:Lkotlin/jvm/functions/Function1;

    if-eqz p2, :cond_9

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lkotlin/Unit;

    :cond_9
    return-void

    .line 54
    :cond_a
    invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 53
    :cond_b
    invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6

    .line 52
    :cond_c
    invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v6
.end method

.method public final setBluetooth(Landroidx/appcompat/widget/AppCompatImageView;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 23
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->bluetooth:Landroidx/appcompat/widget/AppCompatImageView;

    return-void
.end method

.method public final setInternal(Landroidx/appcompat/widget/AppCompatImageView;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 22
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->internal:Landroidx/appcompat/widget/AppCompatImageView;

    return-void
.end method

.method public final setOnSelecteGPSType(Lkotlin/jvm/functions/Function1;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Integer;",
            "Lkotlin/Unit;",
            ">;)V"
        }
    .end annotation

    .line 19
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->onSelecteGPSType:Lkotlin/jvm/functions/Function1;

    return-void
.end method

.method public setSelected(IZ)V
    .locals 0

    .line 73
    invoke-virtual {p0, p1, p2}, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->onSelect(IZ)V

    return-void
.end method

.method public final setUsb(Landroidx/appcompat/widget/AppCompatImageView;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 24
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/gps/GPSSelectView;->usb:Landroidx/appcompat/widget/AppCompatImageView;

    return-void
.end method
